\hypertarget{xcoil_8h_source}{}\doxysection{xcoil.\+h}
\mbox{\hyperlink{xcoil_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef XCOIL\_H}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define XCOIL\_H}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include <QObject>}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xnamespace_8h}{xnamespace.h}}"{}}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 QT\_BEGIN\_NAMESPACE}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_coil_private}{XCoilPrivate}};}
\DoxyCodeLine{10 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_coil}{XCoil}} : \textcolor{keyword}{public} QObject}
\DoxyCodeLine{11 \{}
\DoxyCodeLine{12     Q\_OBJECT}
\DoxyCodeLine{13 }
\DoxyCodeLine{14     Q\_PROPERTY(\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}} \mbox{\hyperlink{class_x_coil_a9e440bf1726dff1a7525fcd765801548}{deviceType}} READ \mbox{\hyperlink{class_x_coil_af4f867b14cda61910a75dd022b7c6e74}{getDeviceType}} WRITE \mbox{\hyperlink{class_x_coil_a0e6cff3ae58f31bcbc6f75436d0f2d54}{setDeviceType}} NOTIFY \mbox{\hyperlink{class_x_coil_ae52018d171ea7449edc1a769f0271c2d}{deviceTypeChanged}})}
\DoxyCodeLine{15     Q\_PROPERTY(\textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_coil_a2df9a45d4e6372f833d4b6cfca7f3bcc}{deviceNumber}} READ \mbox{\hyperlink{class_x_coil_aae86bc7fe1c9ba012e2fcc622b4774ae}{getDeviceNumber}} WRITE \mbox{\hyperlink{class_x_coil_abd56f07226b2b179e0675674c7eb8ac1}{setDeviceNumber}} NOTIFY \mbox{\hyperlink{class_x_coil_aa11e205320e02fd4178fd64233ed0295}{deviceNumberChanged}})}
\DoxyCodeLine{16     Q\_PROPERTY(\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType::CoilObjectType}} \mbox{\hyperlink{class_x_coil_ad57506c2ff0a0a0e51de090d54e44711}{objectType}} READ \mbox{\hyperlink{class_x_coil_af48fb9993bda9cb7fe5e1d69a274ae67}{getObjectType}} WRITE \mbox{\hyperlink{class_x_coil_a2c29988422c4c4a5f3dc1a6f78b0a374}{setObjectType}} NOTIFY \mbox{\hyperlink{class_x_coil_a56ce887d01023e07c9ab384be6612742}{objectTypeChanged}})}
\DoxyCodeLine{17     Q\_PROPERTY(\textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_coil_a4383aa8ef4ebdd6d6fa934336160e0ab}{objectNumber}} READ \mbox{\hyperlink{class_x_coil_afd3d82b1a2d84142e8b4fc36eb7b08d4}{getObjectNumber}} WRITE \mbox{\hyperlink{class_x_coil_ac75e80ccf9c2c4db3671566159fe8570}{setObjectNumber}} NOTIFY \mbox{\hyperlink{class_x_coil_a04d8019de36b388b17a0cbd4cffd2165}{objectNumberChanged}})}
\DoxyCodeLine{18     Q\_PROPERTY(\textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_coil_a0d16fae2b36cad87ef874b64e0b59e33}{coilValue}} READ \mbox{\hyperlink{class_x_coil_a0949d6d92c6235d985e1aef33625e15b}{getCoilValue}} WRITE \mbox{\hyperlink{class_x_coil_ab8f5b5332cf9fc2a19ad6e18af05ed1b}{setCoilValue}} NOTIFY \mbox{\hyperlink{class_x_coil_a92ef3f8a96a88c133970e31a8b976201}{coilValueChanged}})}
\DoxyCodeLine{19 }
\DoxyCodeLine{20 \textcolor{keyword}{public}:}
\DoxyCodeLine{21     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_coil_a19d52b3271c8320c6cc8acb173e97d2c}{XCoil}}(QObject *parent = \textcolor{keyword}{nullptr});}
\DoxyCodeLine{22     \mbox{\hyperlink{class_x_coil_a7c2d8dd95687ab287d7e6110b266e045}{\string~XCoil}}();}
\DoxyCodeLine{23 }
\DoxyCodeLine{24     \textcolor{comment}{/* Property Interface */}}
\DoxyCodeLine{25     \mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}} \mbox{\hyperlink{class_x_coil_af4f867b14cda61910a75dd022b7c6e74}{getDeviceType}}() \textcolor{keyword}{const};}
\DoxyCodeLine{26     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_a0e6cff3ae58f31bcbc6f75436d0f2d54}{setDeviceType}}(\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}});}
\DoxyCodeLine{27 }
\DoxyCodeLine{28     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_coil_aae86bc7fe1c9ba012e2fcc622b4774ae}{getDeviceNumber}}() \textcolor{keyword}{const};}
\DoxyCodeLine{29     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_abd56f07226b2b179e0675674c7eb8ac1}{setDeviceNumber}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{30 }
\DoxyCodeLine{31     \mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType::CoilObjectType}} \mbox{\hyperlink{class_x_coil_af48fb9993bda9cb7fe5e1d69a274ae67}{getObjectType}}() \textcolor{keyword}{const};}
\DoxyCodeLine{32     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_a2c29988422c4c4a5f3dc1a6f78b0a374}{setObjectType}}(\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType::CoilObjectType}});}
\DoxyCodeLine{33 }
\DoxyCodeLine{34     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_coil_afd3d82b1a2d84142e8b4fc36eb7b08d4}{getObjectNumber}}() \textcolor{keyword}{const};}
\DoxyCodeLine{35     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_ac75e80ccf9c2c4db3671566159fe8570}{setObjectNumber}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{36 }
\DoxyCodeLine{37     \textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_coil_a0949d6d92c6235d985e1aef33625e15b}{getCoilValue}}() \textcolor{keyword}{const};}
\DoxyCodeLine{38     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_ab8f5b5332cf9fc2a19ad6e18af05ed1b}{setCoilValue}}(\textcolor{keywordtype}{bool});}
\DoxyCodeLine{39 }
\DoxyCodeLine{40 signals:}
\DoxyCodeLine{41     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_ae52018d171ea7449edc1a769f0271c2d}{deviceTypeChanged}}(\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}});}
\DoxyCodeLine{42     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_aa11e205320e02fd4178fd64233ed0295}{deviceNumberChanged}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{43     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_a56ce887d01023e07c9ab384be6612742}{objectTypeChanged}}(\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType::CoilObjectType}});}
\DoxyCodeLine{44     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_a04d8019de36b388b17a0cbd4cffd2165}{objectNumberChanged}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{45     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_coil_a92ef3f8a96a88c133970e31a8b976201}{coilValueChanged}}(\textcolor{keywordtype}{bool});}
\DoxyCodeLine{46 }
\DoxyCodeLine{47 \textcolor{keyword}{private}:}
\DoxyCodeLine{48     Q\_DISABLE\_COPY(\mbox{\hyperlink{class_x_coil}{XCoil}})}
\DoxyCodeLine{49     \mbox{\hyperlink{class_x_coil_private}{XCoilPrivate}} *\mbox{\hyperlink{class_x_coil_a820eb9dc488ae2d6fcc39c4f46519a12}{xCoilP}};}
\DoxyCodeLine{50 \};}
\DoxyCodeLine{51 }
\DoxyCodeLine{52 QT\_END\_NAMESPACE}
\DoxyCodeLine{53 }
\DoxyCodeLine{54 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// XCOIL\_H}}

\end{DoxyCode}
